package org.dreamwork.jasmine2.web.controls.pdf.controls;

import org.dreamwork.jasmine2.web.controls.pdf.DocumentInfo;
import org.dreamwork.jasmine2.web.controls.pdf.DocumentMetaElement;
import org.dreamwork.jasmine2.web.controls.pdf.MetaElementPosition;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2010-10-11
 * Time: 16:41:28
 */
public class MetaElementControl extends AbstractPDFContainer {
    private DocumentMetaElement dme = new DocumentMetaElement ();

    @Override
    public void init () {
        super.init ();
        DocumentInfo info = (DocumentInfo) context.getAttribute (PDF_Document_Info_Key);
        if (info != null)
            info.addMetaElement (dme);
    }

    public MetaElementPosition getPosition () {
        return dme.getPosition ();
    }

    public String getContent () {
        return dme.getContent ();
    }

    public void setPosition (MetaElementPosition position) {
        dme.setPosition (position);
    }

    public void setContent (String conent) {
        dme.setContent (conent);
    }

    public String getStyle () {
        return dme.getStyle ();
    }

    public void setStyle (String style) {
        dme.setStyle (style);
    }

    public String getApply () {
        return dme.getApply ();
    }

    public void setApply (String apply) {
        dme.setApply (apply);
    }
}